<template>
  <div class="top-container">
    <div class="hospital-top">
        <div class="left" @click="goHome">
            <img src="@/assets/images/logo.png" width="50" height="50" alt="logo" />
            <span>尚医通 预约挂号统一平台</span>
        </div>
        <div class="right">
            <span>帮助中心</span>
            <span>登录注册</span>
        </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const $router = useRouter()

const goHome = () => {
    $router.push('/')
}
</script>

<style lang="scss" scoped>
.top-container {
    position: fixed;    
    z-index: 999;
    background-color: #fff;
}
.hospital-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    .left {
        display: flex;
        align-items: center;
        color: #55a6fe;
        font-size: 20px;
        cursor: pointer;
        span {
            margin-left: 15px;
        }
    }
    .right {
        font-size: 14px;
        color: #bbc1d3;
        span:nth-child(2) {
            margin-left: 10px;
            cursor: pointer;
        }
    }
}
</style>
